#ifndef __SPLITTOOLCPPJIEBA_H__
#define __SPLITTOOLCPPJIEBA_H__

#include "SplitTool.h"
#include "cppjieba/Jieba.hpp"
#include <string>
#include <fstream>
#include <vector>
#include <iostream>
#include <algorithm>

using std::vector;
using std::string;
using std::ifstream;
using std::cerr;

class SplitToolCppJieba
: public SplitTool
{
private :
string tokenize(const string &);
unordered_set<string> StopWords(const string & filename);
public :
    SplitToolCppJieba();
    ~SplitToolCppJieba();
    vector<string> cut(const string &);
private :
    const char* _dict_path;
    const char* _model_path;
    const char* _user_dict_path;
    const char* _idf_path;
    const char* _stop_word_path;
    cppjieba::Jieba _jieba;

};

#endif
